package com.healthdata.service;

import com.healthdata.entity.DataRow;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ExportService {

    // 新增Excel导出方法
    byte[] exportToExcel(List<DataRow> data) throws IOException;

    ResponseEntity<byte[]> exportData(String format, List<DataRow> data, String filename);
    ResponseEntity<byte[]> exportStatistics(String format, Map<String, Object> statistics, String filename);
    ResponseEntity<byte[]> exportPageData(String format, Page<DataRow> page, String filename);
    ResponseEntity<byte[]> exportTableData(String format, List<DataRow> data, String filename);
}